//
//  ContentView.swift
//  TuokeInput
//
//  Created by xx韦 on 2025/8/14.
//

import SwiftUI

struct ContentView: View {
    @StateObject var authManager = AuthManager()
    
    var body: some View {
        Group {
            if authManager.isAuthenticated {
                HomeView()
                    .environmentObject(authManager)
            } else {
                LoginView()
                    .environmentObject(authManager)
            }
        }
    }
}

struct ContentView_Previews: PreviewProvider {
    static var previews: some View {
        ContentView()
    }
}
